package com.rongzhe.house.internet.net;

import com.rongzhe.house.entity.HouseCriteriaTo;
import com.rongzhe.house.entity.HouseEntrustTo;
import com.rongzhe.house.entity.ResponseEntityVo;
import com.rongzhe.house.entity.voo.HouseDetail;
import com.rongzhe.house.entity.voo.HouseOverview;

import java.util.List;
import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by huang on 2017/11/22.
 */

public interface HouseInterface {
    @POST("house/excellent/query")
    Call<ResponseEntityVo<List<HouseOverview>>> firstPage(@Body HouseCriteriaTo criteriaTo);
    @GET("house/detail")
    Call<ResponseEntityVo<HouseDetail>> getDetail(@Query("houseId") String houseId);
    @POST("house/query")
    Call<ResponseEntityVo<List<HouseOverview>>> queryHouse(@Body HouseCriteriaTo criteriaTo);
    @POST("house/collection")
    Call<ResponseEntityVo<Object>> changeStarState(@Body Map<String, String> houseId);
    @GET("house/collection/list")
    Call<ResponseEntityVo<List<HouseOverview>>> getStaredHouse(@Query("pageSize") int pageSize,
                                                               @Query("currentPage") int current);
    @POST("house/delegation/apply")
    Call<ResponseEntityVo<Object>> houseEntrust(@Body HouseEntrustTo entrustTo);
}
